var express = require('express');
var router = express.Router();



/* GET home page. */
router.get('/:company/logout', function(req, res) {

	res.clearCookie('USER_ID'); 
	res.clearCookie('USER_FULLNAME');
	res.clearCookie('USER_GROUP_ID');
	res.clearCookie('USER_GROUP_NAME');
	res.clearCookie('BRANCH_ID');
	res.clearCookie('COMPANY_KEY');

	res.redirect('/'+req.cookies.COMPANY_KEY+'/login');
	
});



module.exports = router;